package com.java.service;

import com.java.dao.BaseAdminDao;
import com.java.dao.impl.BaseAdminDaoImpl;

import java.util.Date;

public class AdminService {
    private static BaseAdminDao dao = new BaseAdminDaoImpl();

    public static void updateLoginAndIp(String username,Date date,String ip){
        dao.updateLoginTime(username,date,ip);
    }

    public static boolean login(String username,String password){
        return dao.login(username,password);
    }
}
